export default {
	// 获取歌单分类
	song_classify: {
		url: 'https://v1.itooi.cn/tencent/songList/category',
		params() {
			return ''
		}
	},
	// 根据歌单分类获取歌单
	song_classify_list: {
		url: 'https://v1.itooi.cn/tencent/songList/hot?',
		params(id, sort = 1, limit = 60) {
			return `categoryId=${ id }&sortId=${ sort }&limit=${ limit }`
		},
	},
	// 搜索
	search: {
		url: 'https://v1.itooi.cn/tencent/search?',
		params(search, pageSize = 50, type = 'song') {
			return `keyword=${ search }&type=${ type }&pageSize=${ pageSize }`
		},
	},
	// 根据歌单获取歌曲列表
	music_info: {
		url: 'https://v1.itooi.cn/tencent/songList?',
		params(id) {
			return `id=${ id }`
		},
	},
	// 获取歌曲地址
	music_desc: {
		url: 'https://v1.itooi.cn/tencent/url?',
		params(id) {
			return `id=${ id }&quality=128&isRedirect=0`
		},
	},
	// 获取歌曲封面
	music_img: {
		url: 'https://v1.itooi.cn/tencent/pic?',
		params(id) {
			return `id=${ id }&imgSize=200&isRedirect=0`
		},
	},
	// 获取歌词
	music_words: {
		url: 'https://v1.itooi.cn/tencent/lrc?key=579621905',
		params(id) {
			return `&id=${ id }`
		}
	},
	// 获取mv分类
	mv_classify: {
		url: 'https://v1.itooi.cn/tencent/mv/category',
		params() {
			return ''
		}
	},
	// 获取mv列表
	mv_list: {
		url: 'https://v1.itooi.cn/tencent/hotMvList?key=579621905',
		params(obj) {
			return `&year=${ obj[0].year }&tag=${ obj[0].tag }&area=${ obj[0].area }&limit=50&offset=0`
		},
	},
	// 获取mv信息
	mv_info: {
		url: 'https://v1.itooi.cn/tencent/mv?key=579621905',
		params(id) {
			return `&id=${ id }`
		}
	}
}